added network earnings and edited the helper to facilitate precomputations in the future.
added network earnings and edited the helper to facilitate precomputations in the future.

rycastaneda/polymer-test,rycastaneda/polymer-test