decrease calculator with directives