rtimelogger 0.8.3

A simple cross-platform CLI tool to track working hours, lunch breaks, and calculate surplus time
Documentation
1
2
3
4
5
use crate::core::calculator::timeline::Timeline;

pub fn calculate_surplus(timeline: &Timeline, expected: i64) -> i64 {
    timeline.total_worked_minutes - expected
}