applications of calculus in medicine