Revert "removed tabs with spaces"

This reverts commit f0584ee5b1091956bc80452bbcf6838781730188.
reimplemented the fix for the date calculation
Hopefully i referted back to the cammel cases