decrease calculator with directives

refs #2