What you are doing is - 


if the person has worked more than 40 hours, you pay him 1.5 times for complete hours worked.
if the person has worked less than 40 hours, you pay him 1 times for complete hours worked.


This works correctly if the amount of hours is less than 40, but according to your question, what you have to do is -


if the person has worked more than 40 hours, pay 1 times for up to 40 hours, and then 1.5 times after 40 hours (that is total hours - 40).


Why do I get the wrong result from this program to compute gross pay?
Does anyone know, if there is any work-around or regular setup for panels or custom code known, to be able to use a url/node/%id or node menu-callback to render node/entity content delivered without the rendered page wrapping (&lt;html&gt; &lt;header&gt;,etc)?

I am not asking for Panels_everywhere behavior nor for Drupal modules like Colorbox, Lightbox, and all the others, nor Colorbox_node popup and such. I only try to have the node/entity callback url at hand to render entity or node content without any page.tpl.php or html.tpl.php involved, to use it somewhere else like for bootstrap modal, node_panels rendered into modals, or for custom scenarios to get most flexibility. 

I took a look into Ctools module suite's modal callback and Entity_popup but the lack of documentation (no offense) and the confusion in my mind lead me to here asking for some breadcrumbs and ideas.

Thanks for any help on this.
