It looks like you’re trying to do 2 different things in your description — do you want to calculate the total rate (which is what you specified for “Total” above), or do you want to calculate the MULTIPLIER that you will eventually use to multiply against rate to get the total rate (which is what you specified for “Hourly” and “Daily”)?
I’m going to assume that you’re looking for the multiplier. Below is what your formula would look like to get the multiplier.
(Note that you’ll need to use “minutes divided by 60” (instead of “hours”) to calculate the hourly rate, because the DATETIME_DIFF function only returns integer values… it never returns decimal values.)
This is amazing! THANK YOU! It worked perfectly with the exception of the daily calculation. In this example it should be calculated as 1 day. Do you have any idea how I can change that?
This is amazing! THANK YOU! It worked perfectly with the exception of the daily calculation. In this example it should be calculated as 1 day. Do you have any idea how I can change that?
You’re welcome! Well, that is actually 0 days because that is the same day (i.e. a full day hasn’t elapsed yet). But if you always want to add in an extra day, then just add a +1 like I added in the /60 for minutes.