Relative Minimum And Maximum Calculus