Calculate productivity in time basis