Enforce parameter types on getDuration()

Passing in anything other than a Simple date will cause unexpected errors. Better to throw something more descriptive.