


def 				UpperCamelCase__					(  SCREAMING_SNAKE_CASE__      ,	SCREAMING_SNAKE_CASE__      ,	SCREAMING_SNAKE_CASE__						):
 if principal <= 0:
  raise Exception('Principal borrowed must be > 0'						)
 if rate_per_annum < 0:
  raise Exception('Rate of interest must be >= 0'						)
 if years_to_repay <= 0 or not isinstance(SCREAMING_SNAKE_CASE__      ,	SCREAMING_SNAKE_CASE__						):
  raise Exception('Years to repay must be an integer > 0'						)

 # Yearly rate is divided by 12 to get monthly rate
 __lowerCamelCase		:							Dict		 =						rate_per_annum / 12

 # Years to repay is multiplied by 12 to get number of payments as payment is monthly
 __lowerCamelCase		:							int		 =						years_to_repay * 12

 return (
     principal
     * rate_per_month
     * (1 + rate_per_month) ** number_of_payments
     / ((1 + rate_per_month) ** number_of_payments - 1)
 )


if __name__ == "__main__":
       import doctest

       doctest.testmod()





import warnings

from ...utils import logging
from .image_processing_chinese_clip import ChineseCLIPImageProcessor


lowercase_	   =     logging.get_logger(__name__)


class 	A_ (	__UpperCamelCase   ):




      '''simple docstring'''


      def __init__(    self:	List[str]						,				*a:	List[Any]						,				**a:	Optional[Any]    ):
       warnings.warn(
           'The class ChineseCLIPFeatureExtractor is deprecated and will be removed in version 5 of Transformers.'
           ' Please use ChineseCLIPImageProcessor instead.'						,				a						,				)
       super().__init__(*a						,				**a    )

