We currently have an app where a user enters their start and end time and this is then deducted from 7 hrs 24 mins,(working day) if they work over this they are in credit, if they work less than this they are in debit.
We have the following formula that calculates the difference from start to end and then works out the hours and minutes in debit or credit by deducting the 7 hrs and 24 mins.
RoundDown(minutesCreditDebitNumber/60,0)& ":" &Mod(minutesCreditDebitNumber,60)
If the user is in debit the formula calculates the hours and minutes correctly, however if the user is in credit it calculates the hours correctly but not the minutes.
An example is if the user has worked 8 hours in a day (minus the 7:24 which is the working day) they should be 36 mins in credit, however the formula is returning a value 24 mins in credit.
Can anyone advise what the correct formula would be to calculate the correct minutes in credit.