That should not be so complicate.
You can create a condition than when TS is 40 or more hours gets auto-approved.
See screenshot with condition.
then in next step, you create a system action which sets status to "approved".
But you need to think what to do when it's less than 40h. Do they get rejected, etc... .. further steps, who gets notified, etc...