LC50 calculation