Calculating time passed/reading files?

When you open app, at the beginning you check if there is your file with saved data on device. If not, you assume user opens app first time and you save current time in file. Next time when user opens apps there will be file ob device so you will read it and check what time was stored there. Then you calculate time difference between saved time and current time, and praise user accordingly.