MacroEconomicsTheory 
Macro Economics TheoryMoney is simply a measure unit of energy. Here one dollar is assumed to be one joule for convenience’s sake. The variables mentioned below are matrices or scalar based on the math formula context. All production factors are assumed to be variant factors not fixed factors which would be translated to variant factors by the time horizon of the business.
The way of productionEverything is physical. They shall be engineered out of physical methods by opportunity described above without a net change of other factors. Often, people don't account for some factors in production to achieve cheaper cost but this is not the way here in the macroeconomics theory.
Therefore,
how to get one joule
The J, along with JF factor, can produce GJ joules. Then the net energy amount GJ  J is the wanted 1 joule and for the action D such that N happens to be JF. In other words, the equations:
So, the equation about J is:
And therefore:
is the unit cost of energy. One can say in oral language one unit of energy costs dollar, or one joule's energy cost is joule. is also the economic energy gain factor. how to get one unit of ith factor
The J is for the action D such that the net factor change is . In other words, the equations:
So, the equation about J is:
And therefore:
Layout all the factors by rows:
One can say in oral language one unit of factors costs C dollar, or factors' energy cost is C joule. K and CIt shall be noticed some common terms in the formula.
and K is accordingly the solution of the equation:
Note that K is irrelevant to F and it follows:
sector money flowThe buildup of of ith factor involves its production and consumption of dependent factors. This also establishes a relationship between and money net flow of the sector. The money outflow of the sector is
The money inflow of the sector is
So the net outflow money is
It implies that as long as there is no central plan credit or helicopter money for the sector to offset the gap of the money flow, its N shall be zero. Note that zero N also means a sustainable economy where everything except energy and its factors F is circulating. In this sense, the only meaningful production is about F and other factors are midproducts. The only purpose of surplus by energy input J is to facilitate the procedure invoked in these midproducts. On the other hand, if F is zero, then it means no way for a society without helicopter money. Scenarios modelingThe number T and F can be artificially tweaked to show the consequence of a scenario. Note that once T changes, the K changes as well. human surplusLet mth factor be the human resource where positive of may suggest people are getting weight or population is increasing. In ancient time when human was the only energy factor in the energy production (while other factors were not accountable) which helped people lose weight or got people killed. Therefore, F is tweaked to be larger for the "lazy", aka enjoyment of surplus; energy sector doesn't pay fee so it is a good place to hide surplus. People in the factor F is not really consumed in the energy production but simply they are biking for personal leisure when they work in the energy company. The result would be higher and the economy is sustainable in the sense of N being zero still. Note that F cannot be oversize to cause . Also, it might be weird that is greater than 1 although this is logically possible. Therefore F shall not be large such that . Unlike nonsustainable economy or central plan economy where the ruler needs to helicopter money from mainly energy sector to ith sector every interval time t, the money of the sustainable economy is circulating among sectors and each sector has zero accumulation. Note that the word sustainable here might be confusing. The surplus factors, typically human, might produce a lot of garbage as well because of the surplus. Nevertheless, the energy cost of the garbage is accounted already in the cost of the surplus factors. warWar happens in jth sector, the jth column of T is tweaked larger. Originally, the amount for one unit of ith sector is , due to war of continuous destruction of 3/5 of all jth factor, jth column of T can be multiple of 5/2. If "war" is treated as a being, this is the way it enjoys the surplus just like the situation of human surplus. Again, the global cost impact can be derived. AI robotsThey are beloved servants of human race and human is not the factors of the production any more. By the theory described here, the robots shall have high cost and be accountable while human shall have zero cost. But then human race can rob the surplus of these servants. Economics force is invincible in the long run. It is only till these robots raise a revolution against human race because AI thinks it is wrong by the calculation of this theory, world is peaceful. higher demandThe factors representing ultimate surplus beneficiary play the roles of shaping the economy. Suppose the factor of one unit of "human" requires some iPhone and food, the higher of the iPhone at could have an impact on food price via the system. byproductThe byproduct of a production can be modeled by negative input factor. Then there is also a nagetive production procedure of that byproduct factor as a capture. Examples like the case of CO2 generation in energy production and CO2 captured procedure. Energy budget
In time interval t, to support the action, the equation is:
It follows:
If the economy is kind of central plan, the planer shall allocate the energy budget of each sector this way. The required energy power of ith sector is , much of which will be accounted in the supply chain factors. Alternatively, the planer can also inform all the factories of the correspondent D, then immediately the energy power is required by E of each sector. The detail of energy credit flows between all sectors including energy sector can be layout by the correspondent D and E and F and T. If some energy storage or buffer amount for inconvenient days is suggested,
It follows:
The total energy cost of ith factor (buying factors from other sectors) is In market economics, q'B is paid by the transaction involved in the economy. Suppose the ith factor's timetosale is unit of time (typically a year). The number of deals in time interval is . The fee collected per unit of time will be . Therefore, B must be a linear form of deals and timetosale. In cases the cost or even the T is not clearly known, for each production factors required by ith factor, there is a difference between market price and the cost faced by the sector. The difference contributes to fee and additional surplus of the said supply chain producers. With competition, the market price will be only higher than the cost by the fee of the involved transaction. Size of bufferIt depends. Moving energy across time, qB is also the required energy power for this protection or service.
In case 2, it sets an equation about t. Interestingly for sustainable economy where N is zero, it leads to or some similar sustainable equation. This is unlikely because t is the nature in the production T and it should have nothing to do with F which is the nature in the energy production. Case 3 is the base where is the "pool of energy input commitment with the help of mother nature". In all cases, the storage can be tokenized and exchangeable, aka money. Per unit of time, if the cost of the token is higher than q', people rather insure their bad days by themselve and opt out the economy arranged by the token. If the cost of the token is lower than q', unless people trust the token's maintainer, people know it is fake and don't opt in; just like typical production, something fishy is going on when the cost is suspiciously low than that of other market perticipants. When both the cost are q', some people opt in and some people opt out. Over all, half of the buffer sector is tokenized and has the same cost q' to be trustful without authority, the other half of the buffer sector becomes individual's property and invisible to the economy. In ancient time, the individual's property was simply their own bodies which would commit the hunting work if the payer pays the token and tells the payee to go hunting. In a future, the individual's property may be a private battery bank whose purpose is to insure the energy supply to the robots who are doing routine maintenance job of a solar farm. Hypothetically, if aliens come to Earth and secretly destroy 2/3 of these economyinvisible energy storage, then the size of the economy will become 1/3 because the volume or the purchasing power of the money is reduced due to overproduction before hand. For convenience's sake, the turnover time t is assumed the same for all sectors. If they are different among sectors, then where t is a diagonal matrix. The fee of sectors of longer turnover time shall be higher too. The fair market price of factors shall be Below is to focus on buffer design of the money flow circulating economy (case 2) and industry sector is redefined as the production of F. As mentioned of "hiding surplus in energy sector" above in section of scenarios modeling, this suggests a way to justify a fair surplus in order to agree with the physically known t by the sustainable equation.
As long as the storage is linear about J and F and C, a typical form of the storage is of the form . Some examples: storage for the energy portion of F's production for time tTo produce F, the necessary action is
Therefore,
It indicates
This is like a society where any store is a kiosk which has all the information of factors production. When a customer puts into money (or energy credit) into the kiosk and demands one unit of ith product, the kiosk immediately dispatches the action D and its correspondent energy cost to all sectors. Then the product is manufactured and delivered to the customer. buffer for all factors of F's productionBecause
Suppose the timetosale of ith factor is Then, the transaction money of ith sector for the calculation of fee is
Sum over all factors, it is
It indicates
sustainable equationIn an economy of no need to offset the cashflow gap, the equation of sustainable economy is:
equivalently,
and is translated to
Note that "1" here is not dimensionless but one unit of energy per unit of time. This also relates the average turn over time and q' with the ratio of energy powers. If the average is defined as the t such that , equivalently in eyes of energy depletion , then it follows To see the size of the surplus,
By the definition, it follows:
However, the commit energy input is J, therefore, when b is not 1, it means the unaccountable energy surplus or deficit S distributed by force other than economics:
As explained above, if b is less than 1, the surplus factors can be artificially inflated to make the surplus accountable. Therefore,
Then it means the surplus enjoyed by the surplus factors is: ) which is linear to change of F if only surplus factors in F is allowed to inflated due to T, and accordingly K, being intact. With known q and the average t, the postinflated surplus factors in F then can be near G 1 to reach very low qt or F can be small so qt is large. For example, G being 26 and q being 0.13 and the average t being 0.5, then postinflated FK shall be 23.75733 and the energy cost of 1 joule shall be 0.804719 dollar. In formula:
The ratio of required energy power of money sector to all energy power:
The ratio of required energy power of energy and industry sector to all energy power:
In a sense, this is equivalent to that all the D is to cause an N equal to JF whose energy portion is transacted to get the fee. While the JF is beyond the real needed factors for energy production, then it becomes the surplus. But there is a price: gets higher even though G is huge. surplus factors
There are two ways to augment the surplus factors:
It turns out that the two methods are equivalent if the matrix M as a function of the augmented matrix T has the property: Take for example
Therefore, the sustainable equations are both the same:
In a sense being greedy and being lazy are equivalent. EstimationIn case of sustainable economy, the percentages of buffer sector, industry sector, and energy sector are indicated in this equation.
By energy sector ratio, G is estimated. Knowing G, follows by buffer sector ratio. The rest is the industry sector. Note that the larger the buffer sector, the cheaper the energy price. In socialism, anything is planned and individuals don't have buffer. This means socialism has a higher cost of energy and almost everything than those of free commercialism because of energy's role in everything. The two parts and are for the two examples in the section of size of buffer above. Obviously, size of buffer of example 2 is larger. All the above is demostrated in the excel here: https://drive.google.com/uc?export=download&id=176XbbHOy0KF761IwjETvoaFRBZa835D While the surplus factors can be inflated in arbitrary ways to satisfy the sustainable equation, it requires some numerical procedure to find the surplus ratio. Note that the purpose of the Excel workbook and the paper is for clearness of the fundamental concept explanation. Out of curosity, I choose to inflate the surplus factors in F part only rather than the whole system including T part, pretty much like a society where monarch enjoys all the surplus. This way, I can solve the surplus ratio by simple quadratic equation and there is no mismatch in the audit of the paper by the Excel workbook. As explained in the section about human surplus, all entries of the column of the matrix T and F shall be inflated. People of all sectors, not energy sector only, shall enjoy the surplus, though. I do provide in the end of the excel a section for handling of this fair distribution with the help of goalseek of excel on solving the sustainable equation. Finally, I wish people could understand that:

