This is a simple conditional statement that provides one alternate execution path.
if (myDateObj.getMonth( ) == 1) { calcMonthLength( ); }