Fixing calculation