kremlin1313
New Member
- Joined
- May 8, 2015
- Messages
- 4
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][TABLE="width: 118"]
<tbody>[TR]
[TD="width: 118"]COMPUTER NAME[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 95"]
<tbody>[TR]
[TD="class: xl65, width: 95"]TIME STARTED[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 98"]
<tbody>[TR]
[TD="class: xl65, width: 98"]TIME FINISHED[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Duration[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]A[/TD]
[TD][TABLE="width: 95"]
<tbody>[TR]
[TD="class: xl65, width: 95, align: right"]07:45:00 AM[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 98"]
<tbody>[TR]
[TD="class: xl65, width: 98, align: right"]10:00:00 AM[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]B[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]C[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I need to display in column D the elapsed time between B and C columns in hh:mm. and the corresponding rates in column E.
Conditions:
IF D2 = 1, D2*15
IF D2 > 1, multiply the number of hours to 15(the rate per hour) plus the rates if below 1 hour
example if DURATION is 1 hour and 25 minutes, its should be $15+10= $25
If D2:
< 20 minutes, $5
> 20 minutes but < 40 minutes, $10
> 40 minutes but < 1 hour, $15
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][TABLE="width: 118"]
<tbody>[TR]
[TD="width: 118"]COMPUTER NAME[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 95"]
<tbody>[TR]
[TD="class: xl65, width: 95"]TIME STARTED[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 98"]
<tbody>[TR]
[TD="class: xl65, width: 98"]TIME FINISHED[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Duration[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]A[/TD]
[TD][TABLE="width: 95"]
<tbody>[TR]
[TD="class: xl65, width: 95, align: right"]07:45:00 AM[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 98"]
<tbody>[TR]
[TD="class: xl65, width: 98, align: right"]10:00:00 AM[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]B[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]C[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I need to display in column D the elapsed time between B and C columns in hh:mm. and the corresponding rates in column E.
Conditions:
IF D2 = 1, D2*15
IF D2 > 1, multiply the number of hours to 15(the rate per hour) plus the rates if below 1 hour
example if DURATION is 1 hour and 25 minutes, its should be $15+10= $25
If D2:
< 20 minutes, $5
> 20 minutes but < 40 minutes, $10
> 40 minutes but < 1 hour, $15