Difference between revisions of "Template:Infobox module/profitcalc"

From UFOpaedia
Jump to navigation Jump to search
m (adjusted value to use #expr function)
m (updated doco, changed label to real manufacturing cost)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
<includeonly>{| width="100%" border="1" cellpadding="2" cellspacing="0" style="{{Infobox style}}"
 
<includeonly>{| width="100%" border="1" cellpadding="2" cellspacing="0" style="{{Infobox style}}"
 
|-
 
|-
! {{StdTable_Sub_Heading}} | Net Manufacturing Profit
+
! {{StdTable_Sub_Heading}} | Real Manufacturing Cost
| ${{formatnum:{{#expr:{{{1}}}-({{{2}}}*{{{3}}})}}}}  
+
| ${{formatnum:{{{1}}}}}  
 
|}</includeonly><noinclude>
 
|}</includeonly><noinclude>
 
template to display calculated manufacturing cost or Real Manufacturing Cost = Sale Price - ($Profit/Hr x Engineer Hours)<br>
 
template to display calculated manufacturing cost or Real Manufacturing Cost = Sale Price - ($Profit/Hr x Engineer Hours)<br>
labeled here as net profit<br>
+
calculation works as profit/hour= (saleprice-unit cost)/engineering hours, unitcost = manufacturing cost+materials cost+labor cost<br>
 +
therefore, RMC= SP-SP+Unit cost.<br>
 +
value must be calculated by editor<bR>
 
usage:
 
usage:
<pre>{{Infobox module/profitcalc|(saleprice)|(hourprofit)|(technhours)}}</pre></noinclude>
+
<pre>{{Infobox module/profitcalc|(net manufacturing profit)}}</pre></noinclude>

Latest revision as of 23:47, 2 February 2011

template to display calculated manufacturing cost or Real Manufacturing Cost = Sale Price - ($Profit/Hr x Engineer Hours)
calculation works as profit/hour= (saleprice-unit cost)/engineering hours, unitcost = manufacturing cost+materials cost+labor cost
therefore, RMC= SP-SP+Unit cost.
value must be calculated by editor
usage:

{{Infobox module/profitcalc|(net manufacturing profit)}}