Amount/total x 100
First of all, you find the total amount of grams in the dessert
In this case you want to find the % of calories coming from fat.
So you would divide the number of grams of fat by the total amount of grams in the dessert
And then you would multiply the answer by 100.