function dateSample( sampleActivity ) {
  if (sampleActivity === undefined || STRING !== typeof sampleActivity || sampleActivity.length <= ZERO) {
    return false;
}
let parse = parseInt(sampleActivity, TEN);
if (isNaN(parse)) {
    return false;
}
return Math.ceil(Math.log(MODERN_ACTIVITY / parse) / (LN / HALF_LIFE_PERIOD));
}
/**
 * Determine the age of archeological find by using
 * given MODERN_ACTIVITY and HALF_LIFE_PERIOD values
 * 
 * @param {String} sampleActivity string representation of current activity 
 * @return {Number | Boolean} calculated age in years or false
 * in case of incorrect sampleActivity
 *
 * @example
 * 
 * dateSample('1') => 22387
 * dateSample('WOOT!') => false
 *
 */
Determine the age of archeological find by using
given MODERN_ACTIVITY and HALF_LIFE_PERIOD values

@param {String} sampleActivity string representation of current activity
@return {Number | Boolean} calculated age in years or false
in case of incorrect sampleActivity

@example


Determine the age of archeological find by using given MODERN_ACTIVITY and HALF_LIFE_PERIOD values @param { String } sampleActivity string representation of current activity @return { Number | Boolean } calculated age in years or false in case of incorrect sampleActivity @example
function dateSample( sampleActivity ) {
  if (sampleActivity === undefined || STRING !== typeof sampleActivity || sampleActivity.length <= ZERO) {
    return false;
}
let parse = parseInt(sampleActivity, TEN);
if (isNaN(parse)) {
    return false;
}
return Math.ceil(Math.log(MODERN_ACTIVITY / parse) / (LN / HALF_LIFE_PERIOD));
}
function dateSample ( sampleActivity ) { if ( sampleActivity === undefined || STRING !== typeof sampleActivity || sampleActivity . length <= ZERO ) { return false ; } let parse = parseInt ( sampleActivity , TEN ) ; if ( isNaN ( parse ) ) { return false ; } return Math . ceil ( Math . log ( MODERN_ACTIVITY / parse ) / ( LN / HALF_LIFE_PERIOD ) ) ; }
Determine the age of archeological find by using
 given MODERN_ACTIVITY and HALF_LIFE_PERIOD values
Determine the age of archeological find by using given MODERN_ACTIVITY and HALF_LIFE_PERIOD values