Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
265 views
in Technique[技术] by (71.8m points)

date - MS Access Qry Function to create a rollout schedule

I was wondering if someone can assist me with a function I can use in my query which will allow me to calculate the release amount of a prepayment each month until the prepayments dates elapse.

Example: current period date: 31 Dec 2020

Prepayment Value $170 Term Start Date: 07 April 2020 Term End Date: 06 April 2021

So , as we are in December the amount to be recognised would be equal to the % of the term that has elapsed. I.e. 31 Dec 2020 minus 07 April 2020 = 269/365 days have to be recognised. Thus (269/365)*$170 = $125

I will require a field which tells me the remainder left to recognise I.e $45

then I need fields which lets call “Month +1, month+2 and Month+3” etc In this case month +1 will need the extra amount that will release this will be $14. this needs to go on until the $45 draws down to 0 in Month+4

Would appreciate any help.

question from:https://stackoverflow.com/questions/65937712/ms-access-qry-function-to-create-a-rollout-schedule

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...