Calculating days overseas for India registration

How I built a tool to make sense of India&rsquo;s visa and registration requirements