We are calculating XXXX with the help of YYYY and ZZZZ since when calculations are happened with reference to the line number one XXXX is processed and then value is become "0" so we are unable to process XXXX and no calculations happen for further since we introduced another wage type to calculate the amount then we added it to XXXX for further then it is resolved.
Regards
Venkatesh