timeToCharge

fun EVPort.timeToCharge(currentChargePercent: Float, targetChargePercent: Float, batteryCapacityInKw: Int): Int

Returns time to charge in minutes provided EVPort.chargingPower is not null and the remainder charging percent between targetChargePercent and currentChargePercent is greater than 0. Default return value is 0 minutes.