My friend and colleague lost his job over this type of behavior... He'd simply go of the rails for days trying to figure out a problem. When he got his next job, I advised him to always think about how the company makes money from his labor. Sometimes it makes sense to "go deep", but often it's cheaper to let it go. If you're dead set on figuring it out, do it on your own time, not the company's.