I think I have the maths corrct now