This is far down on the simplicity side, but I'd design it so that you are awarded points per flight. Calculate the points you get by a formula of [price - (cost*miles)]. That way you are awarded on profit. Give a minimal amount of points for even the lowest fare and go from there.