solve this equation for P
n=p-k/j
n=p-k/j