math

figuring the math