For lazy fucks that don't wanna do the math by hand (like me!) here's a handy spreadsheet:
https://drive.google.com/file/d/1nae...ew?usp=sharing

Just put the values in the amount column in the top right part of the sheet and read the result in the bottom right. I took the values from the wiki and checked some chems with the scanner, so I'm pretty sure it's accurate.