ocpi-tariffs 0.52.0

OCPI tariff calculations
Documentation
{
  "input": {
    "timezone": "Europe/Amsterdam",
    "start_date_time": "2025-11-10 15:02:00+01:00",
    "end_date_time": "2025-11-11 15:12:00+01:00",
    "max_power_supply_kw": 24,
    "requested_kwh": 40,
    "max_current_supply_amp": 4
  },
  "expect": {
    "currency": "EUR",
    "total_cost": {
      "value": {
        "excl_vat": 19.14,
        "incl_vat": 19.14
      },
      "tolerance": 0.1
    },
    "total_charging_time": {
      "value": "1:40:00",
      "tolerance_sec": 1
    },
    "total_idle_time": {
      "value": "22:30:00",
      "tolerance_sec": 1
    },
    // The tariff doesn't define a `parking_time` cost.
    "total_idle_cost": null,
    // All the energy requested should be supplied.
    "total_energy": {
      "value": 40,
      "tolerance_kwh": 0.1
    },
    "total_energy_cost": {
      "value": {
        "excl_vat": 18.32,
        "incl_vat": 18.32
      },
      "tolerance": 0.1
    },
  }
}