function calc(value, scaleFactor) {
  if (typeof value !== 'number') {
    throw new Error('Invalid value for scale: ' + value);
  }
  if (typeof scaleFactor !== 'number') {
    throw new Error('Invalid scaleFactor for scale: ' + scaleFactor);
  }
  return value * scaleFactor;
}
Performs scaling
@param {Number} value
@param {Number} scaleFactor
@returns {number}