text: import { NotImplementedError } from '../extensions/index.js';
  
  const MODERN_ACTIVITY = 15;
  const HALF_LIFE_PERIOD = 5730;
  
  const k = (0.693 / HALF_LIFE_PERIOD);
  
  
  
  
  export default function dateSample(sampleActivity) {
  
    if (typeof sampleActivity != 'string') {
      return false
    }
    else if (sampleActivity.length < 0) {
      return false
    }
    else if (sampleActivity <= 0 || sampleActivity >= 15) {
      return false;
    }
    else if (sampleActivity.match(/[a-z]/gi)) {
      return false;
    }
  
  
    let t = (Math.log(MODERN_ACTIVITY / sampleActivity)) / k;
    return Math.ceil(t);
  
  
  
  
  }
  