Thanks to a mathematical model, scientists calculate interactions of hydrogen with other elements without spending tens of hours in the lab