Make calculate percentage work with px #88