working guest.php with new N formula definition