Create a function with indate and outdate variables and call that function in the stored procedure. See the following link.

[url]http://dbasupport.com/oracle/faq/Detailed/324.shtml[/url]