diff --git a/README.md b/README.md
index fb61b1455bf288372e9f8a174a3f783f3e3ee393..5d5cca3448958dcd53e714da4e96d087e849ac18 100644
--- a/README.md
+++ b/README.md
@@ -102,7 +102,7 @@ As a rough estimate of the total number of jobs in pipeline you can use
 the followig formula:
 
 ```math
-jobs = 4+(22*n_samples)+(1*n_samples*n_beds)+(1*n_samples*n_chunks)+(1*n_chunks)
+jobs = 4+(22*n_{samples})+(1*n_{samples}*n_{beds})+(1*n_{samples}*n_{chunks})+(1*n_{chunks})
 ``` 
 
 This gives about 12,000 jobs for a 96-sample run with 2 bed files and 100 chunks.