While interesting, it would take me more time to implement and validate this logic than it would take the user to enter the data.