calculate trend will work and has fail safes

Calculate trend got redone i think its a lot better now. Stripped out a
lot of debug verbiage made the presentation slightly cleaner. Made a
function to check for weekend and holidays. Made another function to get
just the close of a particular snapshot