# Your First iOS and SwiftUI App: An App From Scratch, Episode 24: Challenge: How to Calculate the Difference | Kodeco

**URL:** <https://forums.kodeco.com/t/your-first-ios-and-swiftui-app-an-app-from-scratch-episode-24-challenge-how-to-calculate-the-difference-kodeco/197931>\
**Category:** 🎓 Courses & Articles\
**Created:** [October 16, 2023, 12:17am UTC](https://forums.kodeco.com/t/your-first-ios-and-swiftui-app-an-app-from-scratch-episode-24-challenge-how-to-calculate-the-difference-kodeco/197931 "2023-10-16T00:17:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rwenderlich](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/rwenderlich/32/108604_2.png) [@rwenderlich](https://forums.kodeco.com/u/rwenderlich)\
**Post date:** [October 16, 2023, 12:17am UTC](https://forums.kodeco.com/t/your-first-ios-and-swiftui-app-an-app-from-scratch-episode-24-challenge-how-to-calculate-the-difference-kodeco/197931/1 "2023-10-16T00:17:10Z")

</div>

> This content was released on Dec 15 2020. The official support period is 6-months from this date.

See if you can figure out an algorithm to calculate the positive difference between the target value and the slider value.

* * *
This is a companion discussion topic for the original entry at [https://www.kodeco.com/17493408-your-first-ios-and-swiftui-app-an-app-from-scratch/lessons/24](https://www.kodeco.com/17493408-your-first-ios-and-swiftui-app-an-app-from-scratch/lessons/24)
