Started progress on calculating gains/losses due to trading