calculating expected offspring