fixed days remaining errors, added try and except function