genetic calculations