Optimal Rotation Periods: An Application of Contract Theory to