Charging losses make a difference
If your battery receives 40 kWh of energy but charging efficiency is 90%, your wall electricity is about 44.4 kWh. The difference represents charging losses.
Actual sessions depend on usable battery capacity, current and target charge, charger efficiency, battery temperature and home tariff. The model is not an estimate of vehicle purchase cost.