The time profile approach to production with an application to gestation lags