In Reply To:
I forgot to tell you that you need to use the global as
<%calculate_category_offset($title)%>
Maybe that's the problem?
I just changed the global from
calculate_category_offset
to
<%calculate_category_offset($title)%>
and still not working yogi