Hi Deu,
Teradata has a view called Sys_Calendar.Calendar.
This has many good attributes and can be easily used to solve your problem.
type 'show view sys_calendar.calendar;' to see the attributes or 'help view sys_calendar.calendar' to get an explanation of the attributes.
Check it out, if you need more info give me an example and I will try and write a sql script to solve it for you.
Regards