Hacker News new | ask | show | jobs
by WA 1910 days ago
Here, I use this for Numi:

    buy = 20
    sell = 219
    gain = sell - buy
    performance = gain / buy * 100
    amount = 500
    capital_invested = amount * buy
    capital_returned = amount * sell
    capital_gain = amount * gain