Calculating Total Overtime Working Hours using Condition
<p>Need your help with my case.</p>

<p>How to make calculating total overtime working hours using condition ?
Example :</p>

<p>using input type,</p>

<pre><code>OT From &lt;input type="text" name="ot_from"&gt;
OT To &lt;input type="text" name="ot_to"&gt;
Total Hours &lt;input type="text" name="total_hours"&gt;
</code></pre>

<p>Working days : from 08.00 - 17.00 (normal working days)
If I working until 19.00, should be calculate that I do overtime for 2 hours.</p>

<p>In my rules, from 18.00 - 18.30 not calculate overtime because that's a break time.
So should be my total Overtime hours is 1.5 not 2 hours.</p>

<p>Someone can give me a solution ?
Appreciate your help.</p>

<p>Thank you.
David</p>
