Simplify calculations