Have FK working with minor error in result (calculation and rounding most likely)