G-S-D casting calcutation program