Note: I make no guarantee that this tool will be correct. If you don't know how to calculate these values by hand, I strongly suggest you practise doing so first and only use this to check your maths.
Note 2: If your m/m % values don't add up to 100, the script will reduce the values so that they do.
(Contact Maya with corrections/additions. Tool built by Michael Wright)