Difference between revisions of "Template:Rest Hours Per Day"
Jump to navigation
Jump to search
(Created page with "<noinclude>{{Rest Hours Per Day|RE=2.15|RRM=2.24|RFF=1}} RE = Rest Effectiveness RRM = Rest Rate Multiplier RFF = Rest Fall Factor Where x = sleeping hours. x * ~0.57143%...") |
|||
Line 1: | Line 1: | ||
− | <noinclude>{{Rest Hours Per Day|RE=2.15|RRM=2.24|RFF=1}} | + | <noinclude>{{Rest Hours Per Day|RE=2.15|RRM=2.24|RFF=1|color=1}} |
RE = Rest Effectiveness | RE = Rest Effectiveness | ||
Line 14: | Line 14: | ||
x = 24/((~0.57143% * RE * RRM)/(0.237% * RFR))+1 <br> | x = 24/((~0.57143% * RE * RRM)/(0.237% * RFR))+1 <br> | ||
</noinclude> | </noinclude> | ||
− | {{#vardefineecho: dayPercentageTemp | {{#expr: (1/(((0.0057143 * {{{RE|1}}} * {{{RRM|1}}}) /(0.00237 )) + 1)) * 100 round 2}}}}%<br><small>({{#expr:{{#var:dayPercentageTemp}}*0.24 round 2}} hrs)</small> | + | {{#if:{{{color|}}}|style="background: hsla(120, 100%, 50%, {{#expr: (1/(((0.0057143 * {{{RE|1}}} * {{{RRM|1}}}) /(0.00237 )) + 1)) round 2}}}});" {{!}} }} {{#vardefineecho: dayPercentageTemp | {{#expr: (1/(((0.0057143 * {{{RE|1}}} * {{{RRM|1}}}) /(0.00237 )) + 1)) * 100 round 2}}}}%<br><small>({{#expr:{{#var:dayPercentageTemp}}*0.24 round 2}} hrs)</small> |
Revision as of 09:14, 26 August 2022
style="background: hsla(120, 100%, 50%, 0.08);" | }} 7.93%
(1.9 hrs)
RE = Rest Effectiveness RRM = Rest Rate Multiplier RFF = Rest Fall Factor
Where x = sleeping hours.
x * ~0.57143% * RE * RRM = (24-x) * 0.237% * RFR
x/(24-x) = (0.237% * RFR)/(~0.57143% * RE * RRM)
(24-x)/x = (~0.57143% * RE * RRM)/(0.237% * RFR)
(24/x)-1 = (~0.57143% * RE * RRM)/(0.237% * RFR)
24/x = ((~0.57143% * RE * RRM)/(0.237% * RFR))+1
x = 24/((~0.57143% * RE * RRM)/(0.237% * RFR))+1
);" | }} 29.32%
(7.04 hrs)