Math some helpful calculate function