%% Compute the Bank Discount Rate of a Security Using datetime Inputs
% This example shows how to use datetime inputs to find the bank discount rate of a security.

DiscRate = discrate(datetime('12-jan-2000','Locale','en_US'), datetime('25-jun-2000','Locale','en_US'), 100, 97.74, 0)

% Copyright 2012 The MathWorks, Inc.