Fixed calculating quatity