I like to use the following formula
20*log10((VolumeSFX/10)*(VolumeMaster/10))
Where VolumeSFX is for game sound effects and VolumeMaster is for the master game volume.
You can also use the following for game music.
20*log10((VolumeMusic/10)*(VolumeMaster/10))
Let it also be noted, that VolumeMaster is a variable that is changeable, as is VolumeSFX or VolumeMusic. I like using a slider or (+) or (-) buttons, instead of just inputting the value.