gains keeper formula