I have an hard cap that I won't work after dinner. The work after dinner is always low quality and will fuck up my sleep, so it's not worth it.
But still, stopping at 8pm every day is still too much. I would ideally stop at 6pm, but I rarely can escape my instinct of "I'll just fix a few more things". One strategy I should apply more often is just schedule things to do, like going out with friends. which would force me to switch -off.
And also, knowing my time is limited forces me to not wander in refactoring masturbation and just getting the job done. Refactors are great but too often I indulge in them.