Count Up with Form Submission

Does anyone know of a component or script or tutorial how I can create a Flash Form that would allow someone to enter a date and have it spit out how many days since the date they provided? TIA! I am assuming there would be some sort of PHP interface.