Proper Variable datum length calculation (dmazar idea)