Make f the subject of the formula

D = √(p/f-p)