adding functions to search for appts in the next two weeks - currently erroring