It's simple calculus