class OptionDefinition {

  public double getTimeToExpiry(final ZonedDateTime date) {
    if (date.isAfter(getExpiry().getExpiry())) {
      throw new IllegalArgumentException("Date " + date + " is after expiry " + getExpiry());
    }
    return DateUtils.getDifferenceInYears(date, getExpiry().getExpiry());
  }

  public  OptionDefinition(final Double strike, final Expiry expiry, final Boolean isCall);

}