﻿// Calculator logic configuration.
// for language-related properties see lang.js

var config = {

// Chemicals savings formulas:
// X - Machine lifetime at your farm - years?
// Y - Yearly costs of chemicals?
// Z - Expected chemical saving with TWIN? (10-30%)

//Cost of chemicals in the period
chemicalsCostFormula: "(X*Y)",
//Result - You save in the total period using TWIN
periodSavingsFormula: "(X*Y*Z/100)",
//Result - You save per year using TWIN
yearlySavingsFormula: "(Y*Z/100)",

// Increased spray capacity formulas
// A - Your sprayed area in ha per year?
// B - Sprayer tank capacity in Litres?
// C - Boom width in metres?
// D - Time for filling, mixing and transport in hours?
// E - Amount of water in l/ha - conventional?
// F - Amount of water in l/ha - TWIN?
// G - Driving speed in km/h - conventional?
// H - Driving speed in km/h - TWIN?

//Result - work rate ha/h - conventional:
workRateConventionalFormula: "(A/((A/(0.1*C*G))+(A*E*D/B)))",
//Result - work rate ha/h - TWIN:
workRateTwinFormula: "(A/((A/(0.1*C*H))+(A*F*D/B)))",
//Result - hours per year - conventional:
hoursPerYearConventionalFormula: "((A/(0.1*C*G))+(A*E*D/B))",
//Result - hours per year - TWIN:
hoursPerYearTwinFormula: "((A/(0.1*C*H))+(A*F*D/B))",
//Result - your saved time in hours per year:
savedHoursPerYearFormula: "(((A*H-A*G)/(0.1*C*G*H))+((A*E*D-A*F*D)/B))",
//Result - your saved time in %:
savedHoursPercantFormula: "100*(1-(((A/(0.1*C*H))+((A*F*D)/B))/((A/(0.1*C*G))+((A*E*D)/B))))",
//Result - your extra capacity in ha per year:
extraCapacityPerYearFormula: "((((A*H-A*G)/(0.1*C*G*H))+((A*E*D-A*F*D)/B))*(A/((A/(0.1*C*H))+(A*F*D/B))))",
//Result - your extra capacity in %:
extraCapacityPercentFormula: "(100*((((A*H-A*G)/(0.1*C*G*H))+((A*E*D-A*F*D)/B))*(A/((A/(0.1*C*H))+(A*F*D/B))))/A)"


}


