(not that you should take advice from random strangers on the internet, but) that sounds like classic ADHD hyperfocus to me. Giving a name to it might help in figuring out how to maximize its benefit.
In terms of where to find the time, there are 24 hours in the day, at least 8 for working the 9-5.