Calculating overtime work
<p>Here's my code. </p>

<pre><code>&lt;p&gt;You worked &lt;?php echo $hours ?&gt;hour(s) this week.&lt;/p&gt;
&lt;p&gt;Your pay for the week is: &lt;?php  $wage  = $_GET["wage"] * ($hours &gt; 40 ? $hours * 1.5 : $hours);
;echo number_format("$wage",2); ?&gt;&lt;/p&gt;
</code></pre>

<p>Thing about this is it calculated by 1.5 if it works over 40+ ..
But i want it like this. 
Lets say you work 41 hours.
I want 40 hours to be the standard rate
and the 1 hour is multiply by 1.5</p>

<p>How can i do that? </p>
