removed the code that caused an error
fixed bug: "earliest and latest Day functions working now
changed order of date and time in summary
removed unneeded code