Calculate journey, fuel and electric ppm, total mileages
- Source:
- Since:
- 0.1.21
Methods
(inner) checkRequiredKeys() → {struct}
Returns:
- Type
- struct
(inner) getBatteryRangeCostPPM(skv_config) → {number}
calculate Battery Range Cost PPM
Parameters:
Name | Type | Description |
---|---|---|
skv_config |
struct | battery_range_miles_user, battery_range_miles, battery_total_capacity_kwh, elec_pp_kwh |
Returns:
- Type
- number
(inner) getEfficiencyCostPPM(skv_config) → {number}
calculate Battery Efficiency Cost PPM
Parameters:
Name | Type | Description |
---|---|---|
skv_config |
struct | electric_energy_consumption, elec_pp_kwh |
Returns:
- Type
- number
(inner) getElectricPPM(skv_config) → {struct}
calculate vehicle electric cost
Parameters:
Name | Type | Description |
---|---|---|
skv_config |
struct | elec_pp_kwh, battery_range_miles, battery_total_capacity_kwh, vat_percentage |
Returns:
- Type
- struct
(inner) getICEPPLitre(skv_config) → {number}
petrol/diesel or hydrogen can be used in calculation so switch here
Parameters:
Name | Type | Description |
---|---|---|
skv_config |
struct | including ice_pp_litre or hydrogen_pp_kg |
Returns:
- Type
- number
(inner) getICEPPM(skv_config) → {struct}
calculate vehicle ICE cost
Parameters:
Name | Type | Description |
---|---|---|
skv_config |
struct | ice_pp_litre, mpg, vat_percentage |
Returns:
- Type
- struct
(inner) getPPM(skv_config) → {struct}
get PPM on electric and ice
Parameters:
Name | Type | Description |
---|---|---|
skv_config |
struct |
Returns:
- Type
- struct