Fixed some maths on quote.