days -m | -y # Print number of days left in the month/year
days "Aug 31" # This year
days "Aug 31, 2016" # Exact date
days "31/08/2019" # Alternate date format
The dateutils package (github) contains almost everything that can be done with dates. Too bad, it's *nix only.