Add range & total-months

@daveray drop some knowledge on this pull request