Update Formula

formula now has gain based on proportion of changes