PHP How to input units from dividing minutes
<p>G'Day</p>

<p>I have inputs into a database time_Commenced, time_completed and units. I have input data in a form for attendance.time_commenced and attendance .time_completed. However I also want to  input data into attendance.units. I get units by dividing time_commenced and_time completed.</p>

<p>i.e.</p>

<pre><code>Time completed - time commenced / 6
1300 - 1200 = 60 /6 = 10 
</code></pre>

<p>Can anyone help?</p>

<p>Thanks</p>
