Where did you get that formula?
You have M and M1 flipped, but it's very confusing to use the same primary symbol (M) for both a mass and a volume (M1).
Look at it this way (I'll refer to your standard as "1" and sample as "2"):
for equal injection volumes, the concentration of sample is equal to the area ratio times the concentration of standard:
M2/V2 = (A2/A1)*(M1/V1)
where
M1 is mass of standard
V1 is volume of standard solution
M2 is mass of sample
V2 is volume of sample solution
If you inject different volumes of sample and standard, you have to correct that by the inverse of the injection volume ratio (we'll call injection volume "I"). That makes the final formula:
M2/V2 = (A2/A1)*(I1/I2)*(M1/V1)
where
M1 is mass of standard
V1 is volume of standard solution
M2 is mass of sample
V2 is volume of sample solution
I1 is injection volume of standard
I2 is injection volume of sample
the final result (M2/V2) will have the same units you used for M1 and V1 (e.g., g/mL, g/L, μg/mL, . . . , whatever). If you want ppm, you will also need to use either μg/mL or mg/L and then factor in the specific gravity of the solvent).