calculating probability