If you can convert three hours of "sitting and stressing" time to two hours of "self and family-care" and one hour of "productive work", then that is an increase of productivity and pay.
Also, as others have mentioned, reading and learning a system is billable time. Programming is thinking, not pushing buttons. (Staring off into space or stressing or distracting yourself with social media is not, however).
It would probably do you well to find a way to clearly separate work and life time/space. Work in a library or a coffee shop away from distractions, and set aside time during the day to be focusing on work and work alone. Take responsibility for controlling what you spend your time doing.