Hello,
I think calculations are correct for 16:9, but something is definitely wrong for 4:3 and 16:10 aspect ratios.
For example, for the 1000 eDPI I use in CSGO, I should use 27 or 26 instead of 24 as the tool says. And 4:3 needs an even greater value.