B Calculus