If you divide a day (24 hours) into blocks of 15 minutes, there are 96 blocks per 24 hour period.
I need a math formula that I can ultimately use in a computer program that will take any time 0:00 - 23:59 and return an integer 1 through 96.
I also need to be able to go the other way and take any integer 1-96 and return the 15 minute block (i,e, 0:45, 10:30, 13:15, 22:00, etc.)
Is this possible? I listed all combinations in Excel and then tried to reverse engineer a formula, but I am not seeing it.
Thank you.
I need a math formula that I can ultimately use in a computer program that will take any time 0:00 - 23:59 and return an integer 1 through 96.
I also need to be able to go the other way and take any integer 1-96 and return the 15 minute block (i,e, 0:45, 10:30, 13:15, 22:00, etc.)
Is this possible? I listed all combinations in Excel and then tried to reverse engineer a formula, but I am not seeing it.
Thank you.