How to calculate with Unit?

And in JRuby

solar_prod = SE_day_production.sum_since(Time.parse("2020-05-16"))
logger.info(solar_prod)
solar_prod += 30.1 | "kWh"
logger.info(solar_prod)