Sample size calculator for non-inferiority trials