Revert "Remove ratio calculation from the client"

This reverts commit 2d91e3625930f478377a24d43ffce0ba45eec1ed.

This should be in another branch since ifixit-production should only
contain stable changes that are ready for production.