Scale equation to fit with the width