Determining the phase of the business cycle