Scripts to calculates profits and losses for taxes