my $next_bill = $cust_pkg->cust_main->next_bill_date;
if( defined($next_bill) and $next_bill != $$sdate ) {
$cutoff_day = (localtime($next_bill))[3];
my $next_bill = $cust_pkg->cust_main->next_bill_date;
if( defined($next_bill) and $next_bill != $$sdate ) {
$cutoff_day = (localtime($next_bill))[3];