Mathematical Formulas Reference
This appendix provides a comprehensive reference of all mathematical formulas used throughout the use.com whitepaper. Formulas are organized by category for easy reference.
Trading & Order Book
Order Matching
Price-Time Priority: Priority=(Price_Level,Timestamp)
Orders at better prices execute first; at same price, earlier orders execute first.
Order Book Depth: Depth=∑i=1nVolumei at price level Pi
Mid Price: Mid_Price=2Best_Bid+Best_Ask
Spread: Spread=Best_Ask−Best_Bid
Spread Percentage: Spread_%=Mid_PriceBest_Ask−Best_Bid×100%
Order Execution
Market Order Fill Price (with slippage): Fill_Price=∑i=1n∑VolumeiVolumei×Pricei
Limit Order Execution:
Time-Weighted Average Price (TWAP): TWAP=n∑i=1nPricei
Volume-Weighted Average Price (VWAP): VWAP=∑i=1nVolumei∑i=1n(Pricei×Volumei)
Risk Management
Margin & Leverage
Initial Margin: Initial_Margin=LeveragePosition_Value
Maintenance Margin: Maintenance_Margin=Position_Value×Maintenance_Rate
Available Margin: Available_Margin=Equity−Used_Margin
Margin Level: Margin_Level=Used_MarginEquity×100%
Maximum Position Size: Max_Position=Available_Balance×Leverage
Liquidation
Liquidation Price (Long): Liquidation_Price=Entry_Price×LeverageLeverage−Maintenance_Rate×Leverage
Simplified: Liquidation_Pricelong=Entry_Price×(1−Leverage1+Maintenance_Rate)
Liquidation Price (Short): Liquidation_Priceshort=Entry_Price×(1+Leverage1−Maintenance_Rate)
Example (Long position):
Entry: $50,000
Leverage: 10×
Maintenance: 0.5%
Liquidation: $50,000 × (1 - 0.1 + 0.005) = $45,250
Distance to Liquidation: Distance=Current_Price∣Current_Price−Liquidation_Price∣×100%
Profit & Loss
Unrealized PnL (Long): PnLlong=(Current_Price−Entry_Price)×Position_Size
Unrealized PnL (Short): PnLshort=(Entry_Price−Current_Price)×Position_Size
PnL Percentage: PnL_%=Initial_MarginPnL×100%
Return on Equity (ROE): ROE=EquityPnL×100%
Risk Metrics
Value at Risk (VaR): VaR=Position_Value×Volatility×Zscore
Where Z-score for 95% confidence = 1.645
Portfolio Risk: Portfolio_Risk=∑i=1n∑j=1nwiwjσiσjρij
Sharpe Ratio: Sharpe=VolatilityReturn−Risk_Free_Rate
Maximum Drawdown: Max_Drawdown=Peak_ValueTrough_Value−Peak_Value×100%
Fee Calculations
Trading Fees
Base Trading Fee: Fee=Trade_Volume×Fee_Rate
Fee with Volume Discount: Fee=Trade_Volume×Base_Rate×(1−Volume_Discount)
Fee with Token Discount: Fee=Trade_Volume×Base_Rate×(1−Volume_Discount)×(1−Token_Discount)
Effective Fee Rate: Effective_Rate=Base_Rate×(1−Volume_Discount)×(1−Token_Discount)
Example:
Volume: $1M
Base rate: 0.10%
Volume discount: 20%
Token discount: 25%
Effective rate: 0.10% × 0.80 × 0.75 = 0.06%
Fee: $1M × 0.06% = $600
Maker-Taker Model
Maker Rebate: Rebate=Trade_Volume×Maker_Rebate_Rate
Net Fee (Maker): Net_Fee=Trade_Volume×(Maker_Fee−Maker_Rebate)
Net Fee (Taker): Net_Fee=Trade_Volume×Taker_Fee
Fee Tiers
Volume Tier Calculation: Tier=f(30_Day_Volume)
Fee Savings: Savings=(Base_Fee−Discounted_Fee)×Annual_Volume
Tokenomics
Token Supply
Circulating Supply: Circulating=Total_Supply−Locked_Tokens−Burned_Tokens
Inflation Rate: Inflation=Existing_SupplyNew_Tokens×100%
Deflation Rate (with burns): Deflation=Total_SupplyBurned_Tokens×100%
Token Valuation
Market Capitalization: Market_Cap=Circulating_Supply×Token_Price
Fully Diluted Valuation (FDV): FDV=Total_Supply×Token_Price
Price-to-Sales Ratio: P/S=Annual_RevenueMarket_Cap
Token Velocity: Velocity=Average_Token_HoldingsTransaction_Volume
Vesting
Linear Vesting: Unlocked=Total_Allocation×Vesting_PeriodTime_Elapsed
Cliff Vesting:
Vesting Schedule: Monthly_Unlock=Vesting_MonthsTotal_Allocation
Buyback & Burn
Quarterly Burn Amount: Burn_Amount=Quarterly_Profit×Burn_Percentage
Tokens Burned: Tokens_Burned=Token_PriceBurn_Budget
Annual Burn Rate: Burn_Rate=Total_Supply∑Quarterly_Burns×100%
Supply After Burns: Supplyt=Supply0×(1−Burn_Rate)t
Price Impact (theoretical): Price_New=Price_Old×Supply_NewSupply_Old
Staking Rewards
Annual Percentage Yield (APY): APY=(1+nr)n−1
Where r = nominal rate, n = compounding periods
Staking Rewards: Rewards=Staked_Amount×APY×365Time_Staked
Effective Staking Rate: Effective_Rate=Base_APY×(1+Loyalty_Bonus)×(1+Volume_Bonus)
Market Making
Spread Management
Optimal Spread: Spread∗=γσλ2
Where:
γ = risk aversion
σ = volatility
λ = order arrival rate
Bid-Ask Quotes: Bid=Mid_Price−2Spread Ask=Mid_Price+2Spread
Inventory Management
Inventory Risk: Risk=Position×Volatility×Time
Optimal Inventory: q∗=−γσ2δ
Where:
δ = drift
γ = risk aversion
σ = volatility
Inventory Skew: Skew=Max_InventoryCurrent_Inventory−Target_Inventory
Pricing
Mid-Price Adjustment: Midadjusted=Midmarket+α×Inventory_Skew
Quote Adjustment: Bidadjusted=Bid−β×Inventorylong Askadjusted=Ask+β×Inventoryshort
Performance Metrics
Latency
Average Latency: Latencyavg=n∑i=1nLatencyi
Percentile Latency (e.g., P99): P99=99th percentile of latency distribution
Throughput: Throughput=Time_PeriodTotal_Transactions
Transactions Per Second (TPS): TPS=SecondsTransactions
System Performance
Uptime Percentage: Uptime=Total_TimeAvailable_Time×100%
Error Rate: Error_Rate=Total_RequestsFailed_Requests×100%
Success Rate: Success_Rate=100%−Error_Rate
Financial Metrics
Revenue Metrics
Average Revenue Per User (ARPU): ARPU=Active_UsersTotal_Revenue
Customer Lifetime Value (LTV): LTV=ARPU×Average_Lifetime×Gross_Margin
Customer Acquisition Cost (CAC): CAC=New_CustomersMarketing_Spend
LTV/CAC Ratio: LTV/CAC=CACLTV
Target: >3:1
Payback Period: Payback=Monthly_ARPUCAC
Profitability Metrics
Gross Margin: Gross_Margin=RevenueRevenue−COGS×100%
EBITDA: EBITDA=Revenue−Operating_Expenses
EBITDA Margin: EBITDA_Margin=RevenueEBITDA×100%
Net Profit Margin: Net_Margin=RevenueNet_Income×100%
Return on Equity (ROE): ROE=Shareholders_EquityNet_Income×100%
Return on Assets (ROA): ROA=Total_AssetsNet_Income×100%
Growth Metrics
Year-over-Year Growth: YoY_Growth=ValuepreviousValuecurrent−Valueprevious×100%
Compound Annual Growth Rate (CAGR): CAGR=(Beginning_ValueEnding_Value)Years1−1
Month-over-Month Growth: MoM_Growth=ValuepreviousValuecurrent−Valueprevious×100%
Derivatives
Perpetual Futures
Funding Rate: Funding_Rate=Index_PriceMark_Price−Index_Price
Funding Payment: Payment=Position_Size×Funding_Rate
Mark Price: Mark_Price=Index_Price×(1+Funding_Basis)
Liquidation Price (Perpetual Long): Liq_Price=Entry_Price×LeverageLeverage−Maintenance_Margin×Leverage−Funding
Options
Black-Scholes Call Option: C=S0N(d1)−Ke−rTN(d2)
Where: d1=σTln(S0/K)+(r+σ2/2)T d2=d1−σT
Black-Scholes Put Option: P=Ke−rTN(−d2)−S0N(−d1)
Option Greeks:
Delta: Δ=∂S∂V
Gamma: Γ=∂S2∂2V
Theta: Θ=∂t∂V
Vega: V=∂σ∂V
Rho: ρ=∂r∂V
Implied Volatility
Implied Volatility (from option price): σimplied=f−1(Option_Price,S,K,r,T)
Solved numerically using Newton-Raphson method.
Statistical Formulas
Volatility
Historical Volatility: σ=n−1∑i=1n(Ri−Rˉ)2
Annualized Volatility: σannual=σdaily×252
Exponentially Weighted Moving Average (EWMA): σt2=λσt−12+(1−λ)rt−12
Correlation
Correlation Coefficient: ρxy=∑(xi−xˉ)2∑(yi−yˉ)2∑(xi−xˉ)(yi−yˉ)
Covariance: Cov(X,Y)=n−1∑(xi−xˉ)(yi−yˉ)
Moving Averages
Simple Moving Average (SMA): SMAn=n∑i=1nPricei
Exponential Moving Average (EMA): EMAt=Pricet×k+EMAt−1×(1−k)
Where $k = \frac{2}{n+1}$
Liquidity Metrics
Order Book Liquidity
Bid-Ask Spread: Spread=Mid_PriceAsk−Bid×100%
Market Depth: Depth±x%=∑Volume within ±x% of mid price
Liquidity Score: Liquidity=Spread×VolatilityVolume
Slippage
Expected Slippage: Slippage=Expected_PriceExecution_Price−Expected_Price×100%
Slippage Cost: Cost=Order_Size×Slippage_%
Conversion Formulas
Interest Rate Conversions
Daily to Annual: Annual_Rate=(1+Daily_Rate)365−1
Annual to Daily: Daily_Rate=(1+Annual_Rate)1/365−1
APR to APY: APY=(1+nAPR)n−1
Where n = compounding periods per year
Price Conversions
Basis Points to Percentage: Percentage=10,000Basis_Points
Percentage to Basis Points: Basis_Points=Percentage×10,000
Conclusion
This comprehensive formula reference provides the mathematical foundation for all calculations used throughout the use.com platform. These formulas ensure consistent, accurate, and transparent operations across trading, risk management, tokenomics, and financial reporting.
Previous: ← FAQ Next: Back to Table of Contents →
Related Sections:
Last updated

