calculate days remaining.