Formatus calculus