For your recipe, 4 oz is equivalent to approximately 113 grams, so you can use that as a substitute. When it comes to converting ounces to grams for cooking or baking, I've found it's really helpful to have a digital kitchen scale that can switch between units, it saves a lot of time and hassle. If you don't have one, you can also just remember that 1 oz is roughly 28 grams, so you can do the conversion in your head or use an online converter for more precise measurements. This way you can easily scale up or down your recipes.