code to process date ranges and code to explain user options