In profit is being calculated by adding add all the expenses like materials used, labor, gas and other that is used and less it from the total amount gained that what's you called profit. In terms of crypto, it must be total amount you buy less from the current amount. That's why we can't sell our BTC lower the amount we purchase it coz you'll be having a loss..