how many grams of hydrocortisone are in a 2% cream with a package size 15gr

my formula i divided 2/100=0.02
0,02x15g= 0.3g
is that correct?

Yes, that is correct. There are 0.3 grams of hydrocortisone in a 15 gram package of a 2% cream.