Calculation of the light curves of HZ Herculis