Ok i am working on a projectand i am havng really big problems with working with time. i am working on a Time hire project. Let me explain, a person hires out a peice of equipment say a computer and it is then logged on a computer how long they want it for.
so to go into the calculation:
time hired from : 12:00
time due back : 14:00
AT the moment i have it so you have 2 drop down boxes with 00:00 at the start and then stop at 24:00 the same day which represents one day this is for time that it goes out. i then have the same for when it is due back.
This works fine if the it is due back the same day before 24:00 hours so say i lent it out at 12:00 and got it back at 14:00 hours it would work out that it was lent out for 2 hours which then chagres the correct amount. but the problems arise when i enter values like:
time hired from : 23:00
time due back : 07:00 ( the next day )
it then out puts a minus value, which then works out that i have to pay them 🙁 this is not good.
does anyone have any ideas how to solve my problem? because i am very stuck for ideas.