added second calculation period