I’m making a quoting system and I need a way to turn
1 days, 15 hours into 2 days, 7 hours where each day contains 8 hours.
I have access to both the days and hours variables so a function could be
function formatWorkHours($days, $hours){
}
Can anyone help me with this please? Other examples could be 1 days, 26 hours.
Thanks!
Something like this should do the trick: