Calculator:Efficiency method comparison/Template

From RuneRealm Wiki
Jump to navigation Jump to search
{{#ifexpr: 
	{{#expr: 
		(({{#switch: 
			{{{drop1 | Profit per hour}}} 
			| Profit per hour = {{{profit1}}} 
			| Coins per XP = {{{profit1}}} * {{{experience1}}} 
		}} * {{{experience2}}}) - ({{#switch: 
			{{{drop2 | Profit per hour}}} 
			| Profit per hour = {{{profit2}}} 
			| Coins per XP = {{{profit2}}} * {{{experience2}}} 
		}} * {{{experience1}}})) / ({{{experience2}}} - {{{experience1}}}) < 0
	}} 
	| {{#ifexpr: 
		{{{experience1}}} > {{{experience2}}} 
		| '''Method 1''' is always more efficient. 
		| '''Method 2''' is always more efficient.
	}} 
	| If you value your time at over {{formatnum: 
		{{#expr: 
			(({{#switch: 
				{{{drop1 | Profit per hour}}} 
				| Profit per hour = {{{profit1}}} 
				| Coins per XP = {{{profit1}}} * {{{experience1}}} 
			}} * {{{experience2}}}) - ({{#switch: 
				{{{drop2 | Profit per hour}}} 
				| Profit per hour = {{{profit2}}} 
				| Coins per XP = {{{profit2}}} * {{{experience2}}} 
			}} * {{{experience1}}})) / ({{{experience2}}} - {{{experience1}}}) round 0
		}}
	}} coins per hour, {{#ifexpr: 
		{{{experience1}}} > {{{experience2}}} 
		| '''Method 1''' is more efficient. 
		| '''Method 2''' is more efficient.
	}}
}}