how to calculate estimated cost - Search