Functions

Added scaffolding for new helper functions. Trying to put code into
those functions. Started with transit visa using date functions.