Just as an aside - the maths should work like this
Damaged guitar =
Original price - cost of repair - adjustment for price as a damaged repaired instrument.
So, total cost should be £549 as deemed price for a damaged repaired MINUS the cost of the repair, because as @Dood points out - it’s their liability to repair it before sale and thus their cost.