How can i programme a leave application module which can count days left eligible?