calculate days remaining