The keys for min and max totals were wrong and they should not have been inside the units hash.
Allow configuration of the date format
Merge pull request #6 from rsilva/dateConfiguration

Allow configuration of the date format
Merge pull request #5 from rsilva/minMaxTotals

Fixed min and max totals