Calculate based on number of backends

Change-Id: I1898838bf87b256391b5dcfa1adf452c3ef9e8d2
Merge "Calculate based on number of backends" into production