Add a check in case of division by zero.
Add cleaner date format.