Is there a set percent that a not for profit has to give back to their market to be considered not for profit?

No, there is not. The cost of providing services varies widely, and may be accounted for in various ways. Generally, anything over 20% in overhead may be considered excessive, but there is no set rule.