fixed error, but days remaining is still slightly wrong