P=\frac{a(h-n)}{h}\cdot{n}=an-\frac{an^2}{h}