Man, I would be so worried about impurities and side reactions. A good example is the recalls of drugs because of nitrosamine contamination. If stuff like this already happens to the experts.
And what is with the whole galenics side? How to make sure the absorption is about right...
For Android there is TimeLimit.io which is open spurce and in the F-Droid store.