


from __future__ import annotations


def 		lowercase_  (     _UpperCamelCase       ,			_UpperCamelCase       ,			_UpperCamelCase  ):


			'''simple docstring'''







			if days_between_payments <= 0:
						raise ValueError('''days_between_payments must be > 0'''  )
			if daily_interest_rate < 0:
						raise ValueError('''daily_interest_rate must be >= 0'''  )
			if principal <= 0:
						raise ValueError('''principal must be > 0'''  )
			return principal * daily_interest_rate * days_between_payments


def 		lowercase_  (     _UpperCamelCase       ,			_UpperCamelCase       ,			_UpperCamelCase       ,			):


			'''simple docstring'''







			if number_of_compounding_periods <= 0:
						raise ValueError('''number_of_compounding_periods must be > 0'''  )
			if nominal_annual_interest_rate_percentage < 0:
						raise ValueError('''nominal_annual_interest_rate_percentage must be >= 0'''  )
			if principal <= 0:
						raise ValueError('''principal must be > 0'''  )

			return principal * (
			    (1 + nominal_annual_interest_rate_percentage) ** number_of_compounding_periods
			    - 1
			)


def 		lowercase_  (     _UpperCamelCase       ,			_UpperCamelCase       ,			_UpperCamelCase       ,			):


			'''simple docstring'''







			if number_of_years <= 0:
						raise ValueError('''number_of_years must be > 0'''  )
			if nominal_annual_percentage_rate < 0:
						raise ValueError('''nominal_annual_percentage_rate must be >= 0'''  )
			if principal <= 0:
						raise ValueError('''principal must be > 0'''  )

			return compound_interest(
			    _UpperCamelCase       ,			nominal_annual_percentage_rate / 3_65       ,			number_of_years * 3_65  )


if __name__ == "__main__":
	import doctest

	doctest.testmod()






# limitations under the License.

# NOTE: This file is deprecated and will be removed in a future version.
# It only exists so that temporarely `from diffusers.pipelines import DiffusionPipeline` works

from .pipelines import DiffusionPipeline, ImagePipelineOutput  # noqa: F401
from .utils import deprecate


deprecate(
    '''pipelines_utils''',
    '''0.22.0''',
    '''Importing `DiffusionPipeline` or `ImagePipelineOutput` from diffusers.pipeline_utils is deprecated. Please import from diffusers.pipelines.pipeline_utils instead.''',
    standard_warn=False,
    stacklevel=3,
)


