The net profits or earnings of associations, businesses or other activities, and corporations shall be ascertained and determined by deducting the necessary expenses of operation from the gross profits or earnings.