|   >>  首 席 律 师 | 
			 
			
			  
                
                   | 
                 
                  萧贺林 律师 
                    内蒙松川律师事务所 手   机:18647607297 电话:0476-8492272 QQ:185884852  |  
                
			    | 
			   
			
				  | 
			 
		 
		
		
			
				|   >> 网 站 公 告 | 
			 
			
			   | 
			 
			
				  | 
			 
			
		 
		
		
			
				|   >> 免 费 咨 询 | 
			 
			
				| 
				  
				  
				  
			   |  
			
				  | 
			 
		 
		
          
		
		
			
def calculate_lawsuit_fee(amount):
    """
    根据诉讼标的金额计算诉讼费用
    
    参数:
        amount: 诉讼标的金额(元)
        
    返回:
        计算得出的诉讼费用(元)
    """
    if amount <= 0:
        return 0
    
    # 诉讼费计算标准(超额累进)
    # 每个元组表示(标的金额上限, 固定费用, 超额部分费率)
    fee_structure = [
        (10000, 50, 0),                # 1万元以下
        (100000, 2300, 0.025),         # 1万-10万
        (200000, 4800, 0.02),          # 10万-20万
        (500000, 8800, 0.015),         # 20万-50万
        (1000000, 17800, 0.01),        # 50万-100万
        (2000000, 27800, 0.009),       # 100万-200万
        (5000000, 54800, 0.008),       # 200万-500万
        (10000000, 84800, 0.007),      # 500万-1000万
        (20000000, 154800, 0.006),     # 1000万-2000万
        (float('inf'), 214800, 0.005)  # 2000万以上
    ]
    
    # 计算诉讼费用
    for limit, base_fee, rate in fee_structure:
        if amount <= limit:
            # 对于第一个档次,直接返回固定费用
            if limit == 10000:
                return base_fee
            # 对于其他档次,计算超额部分费用
            lower_limit = 10000 if limit == 100000 else (limit // 10 * 9)
            excess = amount - lower_limit
            total_fee = base_fee + excess * rate
            # 四舍五入到整数
            return round(total_fee)
    
    return 0
def main():
    print("诉讼费用计算器")
    print("-" * 30)
    
    try:
        amount = float(input("请输入诉讼标的金额(元): "))
        if amount < 0:
            print("Error: 标的金额不能为负数")
            return
            
        fee = calculate_lawsuit_fee(amount)
        print(f"\n诉讼标的金额: {amount:.2f}元")
        print(f"应交纳诉讼费用: {fee}元")
        
        # 计算百分比
        if amount > 0:
            percentage = (fee / amount) * 100
            print(f"诉讼费用占标的金额比例: {percentage:.2f}%")
            
    except ValueError:
        print("Error: 请输入有效的数字")
if __name__ == "__main__":
    main()
		    3.如果不明之处请到本站留言或咨询专业律师。
   |