Calculate project periods based on end date minus start date