Hello Richly,
One of three clock sources can be selected for the RTC module, either the LPO, the internal reference (IRCLK), or the external reference (ERCLK). Of these sources, ERCLK will have the best accuracy, and the LPO the worst accuracy. IRCLK is capable of being trimmed, so should have better accuracy than the LPO.
However, ERCLK and IRCLK are available in stop 3 mode, and not in stop 2. In stop 2, the LPO is the only option.
Using a 32.768kHz crystal for ERCLK, you might use a prescale value of 2, and a modulo value of 163. This should give a RTC overflow period very close to (but not exactly) 10 ms. Longer timed intervals can then utilize variables that are incremented (or decremented) within the RTC ISR, each 10 ms. For timed periods of 100 hours, a 32-bit variable would be required.
Regards,
Mac