Calculate months for contract pdf