added calcResultPeriodControl.value to saveSettingsToFile function