I\'m trying to find the best way to do this:
I have a model with a revenue attribute and a private function inside model:
revenue
public function