00:00Whether you are monitoring project man hours or invoicing your client in 15 minutes interval,
00:05here's how you can round numbers to the nearest 15 minutes interval or an hour.
00:09mRound function can be used to round a number to the nearest multiple of a specific value.
00:14For instance, if your first and the second argument is 10 and 3 respectively,
00:18it returns the value of 9 as 9 is the nearest number to 10 in 3 times table.
00:23Likewise, if your first and the second argument is 10 and 6 respectively,
00:26it returns 12 as 12 is the closest to the 10 in 6 times table.
00:31Therefore, if you put second argument as time 15 minutes,
00:34it returns the time to the closest 15 minute interval.
00:37You can also modify the same formula to get the time to the nearest hour, like this.
Comments