• Sorry, you're quite right! That should be:

    declare @maxminutes bigint = datediff(day, '0001-01-01', '9999-12-31')*cast(24*60 as bigint)

    select @maxminutes

    which yields: 5258963520