How calculation material balance?