is_valid_compounding function

Compounding frequencies