Espresso (like water) is ~1ml per gram. So if your shot is not weighing 29-31 grams then it’s not 30ml of espresso. There will always be some loss as water stays in the puck, so if it’s weighing more like 25-28 grams then likely that other couple grams is still in the puck.