Birthday gift code puzzle

This post was kindly contributed by Heuristic Andrew » sas - go there to comment and to read the full post.

This is a SAS code puzzle. The code works as is, but can you make it simpler? We do this while enjoying simulation and the quirkiness of the Gregorian calendar. The problem A person receives a gift on a random day. Relative to his birthday, how many days is the gift late? Negative values indicate […]

This post was kindly contributed by Heuristic Andrew » sas - go there to comment and to read the full post.