# Beginner issue - None of the following functions can be called with the arguments supplied:

**URL:** <https://discuss.kotlinlang.org/t/beginner-issue-none-of-the-following-functions-can-be-called-with-the-arguments-supplied/28728>\
**Category:** Uncategorized\
**Created:** [June 8, 2024, 4:18pm UTC](https://discuss.kotlinlang.org/t/beginner-issue-none-of-the-following-functions-can-be-called-with-the-arguments-supplied/28728 "2024-06-08T16:18:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zutano99](https://avatars.discourse-cdn.com/v4/letter/z/ecae2f/32.png) [@zutano99](https://discuss.kotlinlang.org/u/zutano99)\
**Post date:** [June 8, 2024, 4:18pm UTC](https://discuss.kotlinlang.org/t/beginner-issue-none-of-the-following-functions-can-be-called-with-the-arguments-supplied/28728/1 "2024-06-08T16:18:23Z")

</div>

I used to program like 20 years ago. Trying to get back into it.

For this code:

```
private fun scheduleWork() {
    val workRequest = PeriodicWorkRequestBuilder<CheckInService>(1, TimeUnit.DAYS).build()
    getInstance(this).enqueue(workRequest)
}

```

I’m getting the following error: None of the following functions can be called with the arguments supplied:  
public inline fun PeriodicWorkRequestBuilder(repeatInterval: Duration, flexTimeInterval: Duration): PeriodicWorkRequest.Builder defined in androidx.work

Please assume I know nothing, just trying to take it step-wise. I’m looking at similar support discussions, but it helps to see it applied to this specific case.

---

<div class="post-metadata">

**Author:** ![kyay10](https://avatars.discourse-cdn.com/v4/letter/k/c57346/32.png) [@kyay10](https://discuss.kotlinlang.org/u/kyay10)\
**Post date:** [June 8, 2024, 5:13pm UTC](https://discuss.kotlinlang.org/t/beginner-issue-none-of-the-following-functions-can-be-called-with-the-arguments-supplied/28728/2 "2024-06-08T17:13:59Z")

</div>

`repeatInterval`, which is the first argument that you supplied `1`, needs to be a `Duration`, not just a regular old Int. I suspect you got this code from somewhere outdated maybe? Regardless, what you probably want is to replace the call with: `PeriodicWorkRequestBuilder<CheckInService>(1.days)` you might have to import the `Duration.Companion.days` extension function
