Okay so I tried this, and initially it didn't look so bad, until I hit enter again and copilot came up with a new suggestion...
I then deleted the test file, created a new empty file, and opened it with a different editor to see what would happen if I prompted it with "calculateManSalary(baseSalary". Got an opposite result, of sorts.