[StockGainCalculator] Initial check-in with old code

Summary:
Pretty messy