calculate tax with overloaded methods