Seconds Calculator 

<div style="max-width: 600px; margin: 0 auto; background: white; padding: 30px; border-radius: 10px; box-shadow: 0 0 20px rgba(0,0,0,0.1);">
    <div style="background: linear-gradient(135deg, #8FABD4 0%, #4A70A9 100%); padding: 25px; border-radius: 8px; margin-bottom: 30px;">
        <p style="color: white; font-size: 26px; margin: 0; text-align: center; font-weight: 600;">Seconds Calculator</p>
    </div>
    
    <div style="margin-bottom: 20px;">
        <label style="display: block; margin-bottom: 8px; color: #333; font-weight: 500;">Days</label>
        <input type="number" id="secDays" min="0" value="0" style="width: 100%; padding: 12px; border: 2px solid #8FABD4; border-radius: 5px; font-size: 16px; box-sizing: border-box;" placeholder="Enter days">
    </div>
    
    <div style="margin-bottom: 20px;">
        <label style="display: block; margin-bottom: 8px; color: #333; font-weight: 500;">Hours</label>
        <input type="number" id="secHours" min="0" value="0" style="width: 100%; padding: 12px; border: 2px solid #8FABD4; border-radius: 5px; font-size: 16px; box-sizing: border-box;" placeholder="Enter hours">
    </div>
    
    <div style="margin-bottom: 20px;">
        <label style="display: block; margin-bottom: 8px; color: #333; font-weight: 500;">Minutes</label>
        <input type="number" id="secMinutes" min="0" value="0" style="width: 100%; padding: 12px; border: 2px solid #8FABD4; border-radius: 5px; font-size: 16px; box-sizing: border-box;" placeholder="Enter minutes">
    </div>
    
    <div style="margin-bottom: 25px;">
        <label style="display: block; margin-bottom: 8px; color: #333; font-weight: 500;">Seconds</label>
        <input type="number" id="secSeconds" min="0" value="0" style="width: 100%; padding: 12px; border: 2px solid #8FABD4; border-radius: 5px; font-size: 16px; box-sizing: border-box;" placeholder="Enter seconds">
    </div>
    
    <div style="text-align: center; margin-bottom: 25px;">
        <button onclick="calculateSeconds()" style="background: #4A70A9; color: white; border: none; padding: 14px 40px; border-radius: 5px; font-size: 16px; cursor: pointer; margin-right: 10px; font-weight: 600;">Calculate</button>
        <button onclick="location.reload()" style="background: #8FABD4; color: white; border: none; padding: 14px 40px; border-radius: 5px; font-size: 16px; cursor: pointer; font-weight: 600;">Reset</button>
    </div>
    
    <div id="secResult" style="display: none; background: #f8f9fa; padding: 25px; border-radius: 8px; border-left: 5px solid #4A70A9;">
        <div style="margin-bottom: 15px;">
            <span style="color: #333; font-weight: 600;">Total Seconds:</span>
            <span id="totalSec" style="color: #4A70A9; font-size: 32px; font-weight: 700; margin-left: 10px;"></span>
        </div>
        <div style="margin-bottom: 10px;">
            <span style="color: #333; font-weight: 500;">Total Minutes:</span>
            <span id="totalMin" style="color: #333; margin-left: 10px;"></span>
        </div>
        <div style="margin-bottom: 10px;">
            <span style="color: #333; font-weight: 500;">Total Hours:</span>
            <span id="totalHrs" style="color: #333; margin-left: 10px;"></span>
        </div>
        <div>
            <span style="color: #333; font-weight: 500;">Total Days:</span>
            <span id="totalDys" style="color: #333; margin-left: 10px;"></span>
        </div>
    </div>
</div>

<script>
function calculateSeconds() {
    const days = parseInt(document.getElementById('secDays').value) || 0;
    const hours = parseInt(document.getElementById('secHours').value) || 0;
    const minutes = parseInt(document.getElementById('secMinutes').value) || 0;
    const seconds = parseInt(document.getElementById('secSeconds').value) || 0;
    
    const totalSeconds = (days * 86400) + (hours * 3600) + (minutes * 60) + seconds;
    const totalMinutes = totalSeconds / 60;
    const totalHours = totalSeconds / 3600;
    const totalDays = totalSeconds / 86400;
    
    document.getElementById('totalSec').textContent = totalSeconds.toLocaleString();
    document.getElementById('totalMin').textContent = totalMinutes.toFixed(2);
    document.getElementById('totalHrs').textContent = totalHours.toFixed(2);
    document.getElementById('totalDys').textContent = totalDays.toFixed(2);
    document.getElementById('secResult').style.display = 'block';
}
</script>

Similar Posts

  • TSP Future Calculator

    Current TSP Balance $ Monthly Contribution $ Years Until Retirement Expected Annual Return % Calculate Reset Future TSP Value $0 Total Contributions $0 Total Earnings $0 Planning your financial future requires more than just saving money—it requires understanding how your savings will grow over time. The TSP Future Calculator is a powerful tool designed to…

  • Hcg Doubling Time Calculator

    First HCG Level (mIU/mL) Second HCG Level (mIU/mL) Time Between Tests Calculate Reset 0 hours Doubling Time Increase 0% 48-Hour Growth 0% Assessment – The HCG Doubling Time Calculator is a vital tool for tracking early pregnancy health. Human Chorionic Gonadotropin (HCG) is a hormone produced during pregnancy, and its levels typically double every 48–72…

  • House Loan Repayment Calculator

    Loan Amount ($) $ Interest Rate (% per annum) Loan Period (Years) Payment Frequency MonthlyFortnightlyWeekly Calculate Reset Repayment Amount Total Repayment Total Interest Number of Payments Buying a home is one of the biggest financial commitments most people will ever make. Whether it’s a first-time purchase or an upgrade to a larger property, understanding how…

  • Age Calendar Calculator 

    Date of Birth: Calculate Reset Age: Born: Day of Week: Age in Years: Age in Months: Age in Weeks: Age in Days: Next Birthday: Days Until Birthday: An Age Calendar Calculator is an advanced online tool designed to calculate a person’s exact age using precise calendar-based logic. It provides a detailed breakdown of age in…

  • W4 Allowance Calculator

    The W4 Allowance Calculator is a powerful financial tool designed to help employees estimate how much federal tax should be withheld from their paycheck based on their W-4 form entries. The W-4 form is used in the United States by employers to determine the correct amount of federal income tax to deduct from an employee’s…

  • Dark Chocolate Dog Calculator

    Dog Weight (lbs) Dark Chocolate Type Semi-Sweet Dark ChocolateDark Chocolate (70-85%)Baking Chocolate (Unsweetened) Amount of Dark Chocolate (oz) Calculate Reset Dark chocolate is one of the most dangerous chocolate types for dogs. While many people enjoy it for its rich flavor and health benefits, it contains much higher levels of theobromine and caffeine compared to…