Calculate p from z. For example if p = 0.