Xbee module store the configuration data

how Xbee module S2b store the configuration data? after how many days we need to replace xbee module

If you write the settings to memory (WR command) the data is written to Non Volatile memory. So the settings will be there till the module fails (Aprox 100 year or more).