Calculation of cryptocurrency rates