C# Program Library Fine Calculation - C# Program

C# Program Library Fine Calculation

using System;
namespace LibraryFine
{
    class Program
    {
        static void Main(string[] args)
        {
            int days;
            float fine;
            Console.WriteLine("Enter total days");
            days = Convert.ToInt32(Console.ReadLine());
            if (days <= 5)
                fine = days * 0.5F;
            else if (days <= 10)
                fine = (days - 5) * 1 + 2.5F;
            else if (days <= 30)
                fine = (days - 10) * 5 + 2.5f + 5;
            else
            {
                fine = (days - 10) * 5 + 2.5f + 5;
                Console.WriteLine("Your Membership is cancelled");
            }
            Console.WriteLine("Fine is {0}", fine);
        }
    }
}