Although creating stored procedures in master makes them globally available, this does not work for functions. You need to use the three-part naming convention:
select ..getDays(...)
Why would Microsoft make functions different from stored procedures?