factored out service for calculation
failing e2e test for calculation with time in different unit
first ugly impl to make test green