I selected HH from the list and that did not work so then I selected MM that still did not work so then I added the Hours Minutes and Seconds to my formula and that still does not work it still says that argument 1 is out of range (what I am looking to compare is the amount of time in hours or minutes that it took to go from one process to another)
datediff ('HH',
(Datetime(year(Minimum (
{@Date Time}, {Billing_Cycle_Process_Tag_File.DocumentOrderInvoiceE})),
Month(Minimum (
{@Date Time}, {Billing_Cycle_Process_Tag_File.DocumentOrderInvoiceE})),
Day(Minimum (
{@Date Time}, {Billing_Cycle_Process_Tag_File.DocumentOrderInvoiceE})),
Hour(Minimum (
{@Date Time}, {Billing_Cycle_Process_Tag_File.DocumentOrderInvoiceE})),
Minute(Minimum (
{@Date Time}, {Billing_Cycle_Process_Tag_File.DocumentOrderInvoiceE})),
Second(Minimum (
{@Date Time}, {Billing_Cycle_Process_Tag_File.DocumentOrderInvoiceE})))),
(Datetime(year(Maximum (
{@Date Time}, {Billing_Cycle_Process_Tag_File.DocumentOrderInvoiceE})),
Month(maximum (
{@Date Time}, {Billing_Cycle_Process_Tag_File.DocumentOrderInvoiceE})),
Day(Maximum (
{@Date Time}, {Billing_Cycle_Process_Tag_File.DocumentOrderInvoiceE})),
Hour(Maximum (
{@Date Time}, {Billing_Cycle_Process_Tag_File.DocumentOrderInvoiceE})),
Minute(Maximum (
{@Date Time}, {Billing_Cycle_Process_Tag_File.DocumentOrderInvoiceE})),
Second(Maximum (
{@Date Time}, {Billing_Cycle_Process_Tag_File.DocumentOrderInvoiceE})))))