Convert duration to hours

I can't give you any meaningful advice without having a REPRoducible EXample (reprex) to work with, otherwise I would be just guessing.

If you take the time to click on the link, read the reprex guide and make one, I will take a look at your problem.