function valueAccordingPercent(value, percent) {
  percent = parseInt(percent.toString().replace('%', ''), 10);
  percent = parseInt(value * percent / 100, 10);
  return percent;
}
Calculate value from percent.

@param {Number} value Base value from percent will be calculated.
@param {String|Number} percent Can be Number or String (eq. `'33%'`).
@returns {Number}