Economics...lets see...money in minus money out = profit unless money out is larger than money in when it becomes a loss. Very difficult.
Your example sounds like accounting, not economics.