Title: CI Hours and Minutes Calculator
Author: Calculator.io
Published: <strong>November 29, 2026</strong>
Last modified: November 29, 2026

---

Search plugins

![](https://ps.w.org/ci-hours-and-minutes-calculator/assets/icon-256x256.png?rev
=3833491)

# CI Hours and Minutes Calculator

 By [Calculator.io](https://profiles.wordpress.org/calculatorio/)

[Download](https://downloads.wordpress.org/plugin/ci-hours-and-minutes-calculator.1.1.1.zip)

 * [Details](https://wordpress.org/plugins/ci-hours-and-minutes-calculator/#description)
 * [Reviews](https://wordpress.org/plugins/ci-hours-and-minutes-calculator/#reviews)
 *  [Installation](https://wordpress.org/plugins/ci-hours-and-minutes-calculator/#installation)
 * [Development](https://wordpress.org/plugins/ci-hours-and-minutes-calculator/#developers)

 [Support](https://wordpress.org/support/plugin/ci-hours-and-minutes-calculator/)

## Description

Easily add, subtract, and calculate time with our free Hours and Minutes Calculator.
Get fast and accurate time duration results for timesheets and payroll!

Add the calculator to any page, post or widget area with the shortcode `[ci_hours_and_minutes_calculator]`.

**What you enter:** Start Time, End Time, Start Date, End Date.

**What you get:** Days, Hours and Minutes, Hours and Minutes, Hours, Minutes.

Features:

 * Works as soon as it is activated: no account, no API key and no settings page.
 * Calculates in your visitor’s browser. Nothing they type is sent to calculator.
   io or anywhere else, and the plugin loads no ads, trackers or external scripts.
 * Responsive: the form and the results sit side by side on wide pages and stack
   on narrow ones. The frame resizes itself to fit the calculator.
 * Optional light, dark or automatic (follows the visitor’s system setting) theme,
   a custom accent color and a maximum width, all set in the shortcode.
 * The calculator runs in an iframe, so your theme’s styles cannot break it and 
   it cannot break your theme.

More about this calculator: [https://www.calculator.io/hours-and-minutes-calculator/](https://www.calculator.io/hours-and-minutes-calculator/)

### Usage

Add the Hours and Minutes Calculator shortcode to your page, post or sidebar:

    ```
    [ci_hours_and_minutes_calculator]
    ```

Or add the following code to your template where you would like the Hours and Minutes
Calculator to appear:

    ```
    <?php echo do_shortcode( '[ci_hours_and_minutes_calculator]' ); ?>
    ```

All attributes are optional:

 * `title` – `1` (default) shows the calculator heading with its icon, `0` hides
   it. Example: `[ci_hours_and_minutes_calculator title="0"]`
 * `theme` – `light` (default), `dark`, or `auto` to follow the visitor’s light/
   dark system setting. Example: `[ci_hours_and_minutes_calculator theme="auto"]`
 * `accent` – an accent color for buttons and highlights, as a hex value. Example:`[
   ci_hours_and_minutes_calculator accent="#2563eb"]`
 * `max_width` – the widest the calculator may be: a number followed by `px`, `%`
   or `rem`. The calculator is centered when it is narrower than its column. Example:`[
   ci_hours_and_minutes_calculator max_width="720px"]`

Attributes can be combined: `[ci_hours_and_minutes_calculator title="0" theme="auto"
accent="#2563eb" max_width="720px"]`

### Source code and libraries

The plugin’s own JavaScript and CSS are shipped unminified and human-readable: `
assets/js/*.js` (except `assets/js/lib/`), `assets/css/main.css`, `assets/css/ci-
widget.css`, `assets/css/ci-embed.css` and the PHP file. `main.css` is the compiled,
unminified stylesheet of calculator.io. The calculator is also published on the 
calculator.io website: https://www.calculator.io/hours-and-minutes-calculator/

Third-party libraries bundled in `assets/js/lib/`. Where a file is minified, the
readable source is available at the upstream address:

 * math.js 3.37.1 (Apache-2.0) – `assets/js/lib/math.min.js`, minified build. Source:
   https://github.com/josdejong/mathjs
 * marked 15.0.12 (MIT) – `assets/js/lib/marked.min.js`, minified build. Source:
   https://github.com/markedjs/marked
 * Inputmask 5.0.9-beta.70 (MIT) – `assets/js/lib/input-mask.min.js`, minified build.
   Source: https://github.com/RobinHerbots/Inputmask
 * lazysizes 5.3.2 (MIT) – `assets/js/lib/lazysizes.js`. Source: https://github.
   com/aFarkas/lazysizes
 * Air Datepicker 3.3.0 (MIT) – `assets/js/lib/air-datepicker.js`. Source: https://
   github.com/t1m0n/air-datepicker
 * Inter font (SIL Open Font License 1.1) – `assets/fonts/inter-v20-latin.woff2`.
   Source: https://github.com/rsms/inter

## Screenshots

[⌊The Hours and Minutes Calculator input form: Start Time, End Time, Start Date,
End Date.⌉⌊The Hours and Minutes Calculator input form: Start Time, End Time, Start
Date, End Date.⌉[

The Hours and Minutes Calculator input form: Start Time, End Time, Start Date, End
Date.

[⌊The Hours and Minutes Calculator results: Days, Hours and Minutes, Hours and Minutes,
Hours, Minutes.⌉⌊The Hours and Minutes Calculator results: Days, Hours and Minutes,
Hours and Minutes, Hours, Minutes.⌉[

The Hours and Minutes Calculator results: Days, Hours and Minutes, Hours and Minutes,
Hours, Minutes.

## Installation

 1. Upload the /ci-hours-and-minutes-calculator/ folder to the /wp-content/plugins/
    directory, or install the plugin from the Plugins screen.
 2. Activate the Hours and Minutes Calculator plugin through the “Plugins” menu in 
    WordPress.
 3. Add the `[ci_hours_and_minutes_calculator]` shortcode to a page or post.

## FAQ

### How do I add the calculator to a page?

Add the shortcode `[ci_hours_and_minutes_calculator]` to a page or post. In the 
block editor use a Shortcode block. In a theme template use `<?php echo do_shortcode('[
ci_hours_and_minutes_calculator]' ); ?>`.

### Which shortcode attributes are available?

title (1 or 0), `theme` (light, dark or auto), `accent` (a hex color such as #2563eb)
and `max_width` (for example 720px, 80% or 40rem). See the Usage section for examples.
Invalid values are ignored and the default is used instead.

### How do I get a dark calculator?

Use `theme="dark"` for always dark, or `theme="auto"` to follow the visitor’s light/
dark system setting. The default, `theme="light"`, keeps the calculator light on
any background.

### Can I hide the heading?

Yes. Use `title="0"` and the heading with the calculator’s icon is not printed, 
so you can write your own.

### Does the plugin send data anywhere?

No. The calculation happens in the visitor’s browser, nothing they enter leaves 
the page, and the plugin makes no requests to calculator.io or any other external
service. It sets no cookies and loads no ads or trackers.

### The calculator is the wrong height or has a scrollbar.

The frame adjusts its height automatically while the page is open. If your theme
or a caching or optimisation plugin removes scripts from the page, the frame keeps
a default height; exclude the plugin’s `ci-embed.js` file from script optimisation.

### How do I calculate hours and minutes between two times?

Enter a start time and an end time, then click “Calculate,” and the tool instantly
returns how many hours and minutes are between them. For example, a start time of
8:30 a.m. and an end time of 5:30 p.m. gives a duration of exactly nine hours.

### How do I count hours between two different dates?

Switch the calculator from “Between Two Times” to “Between Two Dates.” This mode
adds a start date and an end date, so you can set the specific hour, time of day,
date, and year for both points. It then returns the exact difference as days, hours,
and minutes; hours and minutes; hours; or minutes.

### How do I convert hours and minutes into a decimal or total minutes?

The calculator shows a duration in more than one form: for instance, 4 hours and
15 minutes is also expressed as 4.25 hours or a total of 255 minutes. This makes
it easy to enter time into timesheets or payroll systems that expect decimals.

### What is the difference between the 12-hour clock and military time?

The 12-hour clock splits the day into two 12-hour periods labeled a.m. (“before 
noon”) and p.m. (“after noon”), while the 24-hour clock (called “military time” 
in the U.S.) runs from 00:00 to 23:59 with no a.m./p.m. labels. The 24-hour format
is the basis of the ISO 8601 standard and is used in fields like aviation, healthcare,
and the military where ambiguity is too risky.

### How many minutes and seconds are in an hour?

An hour consists of 60 minutes, and each minute consists of 60 seconds, so an hour
equals exactly 3,600 seconds. This 60-based (sexagesimal) division dates back to
ancient Babylonian astronomers.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“CI Hours and Minutes Calculator” is open source software. The following people 
have contributed to this plugin.

Contributors

 *   [ Calculator.io ](https://profiles.wordpress.org/calculatorio/)

[Translate “CI Hours and Minutes Calculator” into your language.](https://translate.wordpress.org/projects/wp-plugins/ci-hours-and-minutes-calculator)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/ci-hours-and-minutes-calculator/),
check out the [SVN repository](https://plugins.svn.wordpress.org/ci-hours-and-minutes-calculator/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/ci-hours-and-minutes-calculator/)
by [RSS](https://plugins.trac.wordpress.org/log/ci-hours-and-minutes-calculator/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.1.1

 * Tested up to WordPress 7.2
 * Faster result updates and a more responsive on-screen number pad on phones
 * Calculation and wording fixes carried over from calculator.io

#### 1.1.0

 * New shortcode attributes: `title`, `theme` (light, dark, auto), `accent` and `
   max_width`
 * Responsive layout: form and results wrap into one column on narrow pages, wide
   tables scroll inside their own box
 * The frame now follows the calculator’s height when it changes or the window is
   resized
 * Fixed the missing heading icon
 * The plugin’s JavaScript and CSS are now shipped unminified
 * The WordPress-side script and styles load only on pages that use the shortcode

#### 1.0.1

 * Removed leftover files of earlier plugin versions
 * Tested up to WordPress 7.1

#### 1.0.0

 * Initial release of Hours and Minutes Calculator

## Meta

 *  Version **1.1.1**
 *  Last updated **13 hours ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 5.0 or higher **
 *  Tested up to **7.2**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [Time Calculator](https://wordpress.org/plugins/tags/time-calculator/)[time duration calculator](https://wordpress.org/plugins/tags/time-duration-calculator/)
 *  [Advanced View](https://wordpress.org/plugins/ci-hours-and-minutes-calculator/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/ci-hours-and-minutes-calculator/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/ci-hours-and-minutes-calculator/reviews/)

## Contributors

 *   [ Calculator.io ](https://profiles.wordpress.org/calculatorio/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/ci-hours-and-minutes-calculator/)