I have been asked to help convert some code from sas to another software application code sample 1 months_in_trial = max(1,min(5,1+intck('month',trial_start_dt,&pbd_date))); I understand a portion of the code intck('month',trial_start_dt,&pbd_date))); means to take trial_start_dt and compare it to the &pbd_date. I am attempting to decode the portion marked in red. code sample 2: trial_start_dt = intnx( 'month' ,d_lm_trial_on_street_dt ,1+(day(d_lm_trial_on_street_dt)>15) ); It appears the code is saying to compare the trial_start_dt with the first day of the tria_on_the_street_dt then add 15 days. I am looking for confirmation.
... View more