Compounding

When do we use the day count for discounting (N/360) vs Compounding (1+R)^(N/360)?