mock calculate function :