# 💵 Capital Gains

**(Holding Currency ===  Portfolio Currency)**

$$
Capital \~Gains  = (Price \* TotalShares - TotalInvested);
$$

**(Holding Currency !==  Portfolio Currency)**

$$
Capital Gains
\= (Price \* TotalShares - TotalInvested) \* AvgCurrencyPrice;
$$

**Price** -  I'ts the asset current price&#x20;

**Total Shares** - It's the holding's current shares&#x20;

**Total Invested** - I'ts the total money invested in the holding&#x20;

**Avg. Currency Price**- It's the avg. price from all the currency prices from the holdings transactions
