How does the calculation work