Abstracted calculations into MarketUtils.