What I do is use an average % if I don't have tested material with proper numbers. It will give you a pretty close approximation on mg content.
I use an average of 15% for trim and 30% for hash, considering most strains are at least that these days. So...
1 gram = 1000 mg
Multiply 1000 x (grams...